'use strict'

function param( url, json ) {
  var s = [];

  for (var a in json) {
    s[ s.length ] = encodeURIComponent(a) + "=" +
      encodeURIComponent(json[a] == null ? "" : json[a]);
  }

	// Return the resulting serialization
	return url + s.join( "&" );
}

function Tool() {
  var self = this;
}

Tool.param = param;

module.exports = Tool;
